option transform rptdigits Number of digits in generated names integer 2 https://www.gpsbabel.org/WEB_DOC_DIR/filter_transform.html#fmt_transform_o_rptdigits
option transform rptname Use source name for route point names boolean N https://www.gpsbabel.org/WEB_DOC_DIR/filter_transform.html#fmt_transform_o_rptname
option transform del Delete source data after transformation boolean N https://www.gpsbabel.org/WEB_DOC_DIR/filter_transform.html#fmt_transform_o_del
+option transform timeless Create transformed points without times boolean N https://www.gpsbabel.org/WEB_DOC_DIR/filter_transform.html#fmt_transform_o_timeless
validate Validate internal data structures https://www.gpsbabel.org/WEB_DOC_DIR/filter_validate.html
option validate checkempty Check for empty input boolean 0 https://www.gpsbabel.org/WEB_DOC_DIR/filter_validate.html#fmt_validate_o_checkempty
option validate debug Output debug messages instead of possibly issuing a fatal error boolean 0 https://www.gpsbabel.org/WEB_DOC_DIR/filter_validate.html#fmt_validate_o_debug
rptdigits Number of digits in generated names
rptname Use source name for route point names
del Delete source data after transformation
+ timeless Create transformed points without times
height Manipulate altitudes
add Adds a constant value to every altitude (meter, ap
wgs84tomsl Converts WGS84 ellipsoidal height to orthometric h
foreach (Waypoint* wpt, *global_waypoint_list) {
wpt = new Waypoint(*wpt);
+ if (timeless) {
+ wpt->SetCreationTime(gpsbabel::DateTime());
+ }
switch (current_target) {
case 'R':
route_add_wpt(rte, wpt, RPT, name_digits);
void TransformFilter::transform_any_disp_wpt_cb(const Waypoint* wpt)
{
auto* temp = new Waypoint(*wpt);
+ if (timeless) {
+ temp->SetCreationTime(gpsbabel::DateTime());
+ }
if (current_target == 'R') {
route_add_wpt(current_rte, temp, current_namepart, name_digits);
} else if (current_target == 'T') {
void TransformFilter::process()
{
- int delete_after = (opt_delete && (*opt_delete == '1')) ? 1 : 0;
+ timeless = opt_timeless && (*opt_timeless == '1');
+
+ bool delete_after = opt_delete && (*opt_delete == '1');
- use_src_name = (opt_rpt_name && (*opt_rpt_name == '1')) ? 1 : 0;
+ use_src_name = opt_rpt_name && (*opt_rpt_name == '1');
name_digits = 3;
if (rpt_name_digits && *rpt_name_digits) {
route_head* current_rte{};
char* opt_routes{}, *opt_tracks{}, *opt_waypts{}, *opt_delete{}, *rpt_name_digits{}, *opt_rpt_name{};
+ char* opt_timeless{};
+ bool timeless{};
+ bool use_src_name{};
QString current_namepart;
- int name_digits{}, use_src_name{};
+ int name_digits{};
const QString RPT = "RPT";
"del", &opt_delete, "Delete source data after transformation", "N",
ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
+ {
+ "timeless", &opt_timeless, "Create transformed points without times", "N",
+ ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
+ }
};
void transform_waypoints();
--- /dev/null
+<para>
+This option tells
+GPSBabel to create points without creation times instead of copying the creation time from the source points.
+</para>